import "./index.css";
import "nprogress/nprogress.css";
import "@arco-themes/vue-guat-acm/index.less";
import "@icon-park/vue-next/styles/index.css";
import App from "./App.vue";
import vAuth from "./directives/vAuth";
import Permissions from "@/constant/permission";
import installPinia from "./store";
import installRouter from "./router";
import { createApp } from "vue";
import { ButtonInternalStyle } from "./config/internal-style";

const app = createApp(App);

app.config.globalProperties.$permission = Permissions;
app.config.globalProperties.$config = {
  $button: ButtonInternalStyle,
};
installPinia(app);
installRouter(app);

app.directive("auth", vAuth);
app.mount("#app");
